package com.vx.ratingTool.controllers;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/")
public class Index {
	@RequestMapping(method = RequestMethod.GET)
	public String welcome(Model model) {
		Date today = new Date();
		model.addAttribute("today", today);
		return "index";
	}

	@RequestMapping(value = { "/ratingTool" }, method = RequestMethod.GET)
	public String ratingToolMain(Model model) {

		return "ratingTool";
	}

}
